local i = 1
a = {1,3,4,7,2,1,9}
while a[i] do
	if a[i] == 2 then break end
	i = i + 1
end
print(i)